-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoomed out mode: show content container children #56890
Zoomed out mode: show content container children #56890
Conversation
Size Change: +113 B (0%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me, I can now drag patterns into the <main>
group 🎉
@@ -290,6 +290,7 @@ function BlockSelectionButton( { clientId, rootClientId } ) { | |||
<BlockTitle | |||
clientId={ clientId } | |||
maximumLength={ 35 } | |||
context="list-view" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will do anything since the BlockSelectionButton is no longer used in zoomed out mode since #56808
@@ -105,12 +105,17 @@ function ListViewBranch( props ) { | |||
const parentBlockInformation = useBlockDisplayInformation( parentId ); | |||
const syncedBranch = isSyncedBranch || !! parentBlockInformation?.isSynced; | |||
|
|||
const canParentExpand = useSelect( | |||
const { canParentExpand, getBlockById } = useSelect( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List View also can't be accessed in zoomed out mode now, so the changes here might also not be needed
What?
Shows the children of the
main
section in the list view, and allows selection of these in editor canvas when in zoomed out mode.Why?
Currently it is not very easy to work with the body content in zoomed out view as it just appears as one big section.
How?
Detects a top level group container with tag of
main
and removes the editor overlay of it and shows direct children of this in the list view.Testing Instructions
main
to the top level body content groupScreenshots or screencast
content-sections.mp4